import Vue from 'vue'
import App from './App.vue'
import BaiduMap from 'vue-baidu-map'
import api from './model/api.js'
import './assets/common.scss'
import router from './router'
import VueRouter from 'vue-router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import Viewer from "v-viewer";
import "viewerjs/dist/viewer.css";
Vue.use(Viewer, {
  defaultOptions: {
    button: false,
    navbar: false,
    title: false,
    toolbar: true,
  },
});
Vue.use(ElementUI);
Vue.use(VueRouter)
Vue.config.productionTip = false
Vue.prototype.$api = api;
Vue.prototype.$amapkey = '61a1208e3ebccfb41abb1bb56bd5d68f';

Vue.use(BaiduMap, {
  ak: 'BifotZA37yhTqeoObIV7iTQXchzswpnH'
})

new Vue({
  render: h => h(App),
  router: router
}).$mount('#app')
